package com.bawei.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class RepertoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RepertoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goods_name =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goods_name <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goods_name like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goods_name not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goods_name in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumIsNull() {
            addCriterion("repertory_num is null");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumIsNotNull() {
            addCriterion("repertory_num is not null");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumEqualTo(Integer value) {
            addCriterion("repertory_num =", value, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumNotEqualTo(Integer value) {
            addCriterion("repertory_num <>", value, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumGreaterThan(Integer value) {
            addCriterion("repertory_num >", value, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("repertory_num >=", value, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumLessThan(Integer value) {
            addCriterion("repertory_num <", value, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumLessThanOrEqualTo(Integer value) {
            addCriterion("repertory_num <=", value, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumIn(List<Integer> values) {
            addCriterion("repertory_num in", values, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumNotIn(List<Integer> values) {
            addCriterion("repertory_num not in", values, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumBetween(Integer value1, Integer value2) {
            addCriterion("repertory_num between", value1, value2, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryNumNotBetween(Integer value1, Integer value2) {
            addCriterion("repertory_num not between", value1, value2, "repertoryNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumIsNull() {
            addCriterion("midway_num is null");
            return (Criteria) this;
        }

        public Criteria andMidwayNumIsNotNull() {
            addCriterion("midway_num is not null");
            return (Criteria) this;
        }

        public Criteria andMidwayNumEqualTo(Integer value) {
            addCriterion("midway_num =", value, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumNotEqualTo(Integer value) {
            addCriterion("midway_num <>", value, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumGreaterThan(Integer value) {
            addCriterion("midway_num >", value, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("midway_num >=", value, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumLessThan(Integer value) {
            addCriterion("midway_num <", value, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumLessThanOrEqualTo(Integer value) {
            addCriterion("midway_num <=", value, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumIn(List<Integer> values) {
            addCriterion("midway_num in", values, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumNotIn(List<Integer> values) {
            addCriterion("midway_num not in", values, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumBetween(Integer value1, Integer value2) {
            addCriterion("midway_num between", value1, value2, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andMidwayNumNotBetween(Integer value1, Integer value2) {
            addCriterion("midway_num not between", value1, value2, "midwayNum");
            return (Criteria) this;
        }

        public Criteria andLockNumIsNull() {
            addCriterion("lock_num is null");
            return (Criteria) this;
        }

        public Criteria andLockNumIsNotNull() {
            addCriterion("lock_num is not null");
            return (Criteria) this;
        }

        public Criteria andLockNumEqualTo(Integer value) {
            addCriterion("lock_num =", value, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumNotEqualTo(Integer value) {
            addCriterion("lock_num <>", value, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumGreaterThan(Integer value) {
            addCriterion("lock_num >", value, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("lock_num >=", value, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumLessThan(Integer value) {
            addCriterion("lock_num <", value, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumLessThanOrEqualTo(Integer value) {
            addCriterion("lock_num <=", value, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumIn(List<Integer> values) {
            addCriterion("lock_num in", values, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumNotIn(List<Integer> values) {
            addCriterion("lock_num not in", values, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumBetween(Integer value1, Integer value2) {
            addCriterion("lock_num between", value1, value2, "lockNum");
            return (Criteria) this;
        }

        public Criteria andLockNumNotBetween(Integer value1, Integer value2) {
            addCriterion("lock_num not between", value1, value2, "lockNum");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeIsNull() {
            addCriterion("repertory_time is null");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeIsNotNull() {
            addCriterion("repertory_time is not null");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeEqualTo(Date value) {
            addCriterionForJDBCDate("repertory_time =", value, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("repertory_time <>", value, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("repertory_time >", value, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("repertory_time >=", value, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeLessThan(Date value) {
            addCriterionForJDBCDate("repertory_time <", value, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("repertory_time <=", value, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeIn(List<Date> values) {
            addCriterionForJDBCDate("repertory_time in", values, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("repertory_time not in", values, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("repertory_time between", value1, value2, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("repertory_time not between", value1, value2, "repertoryTime");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeIsNull() {
            addCriterion("repertory_type is null");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeIsNotNull() {
            addCriterion("repertory_type is not null");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeEqualTo(Byte value) {
            addCriterion("repertory_type =", value, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeNotEqualTo(Byte value) {
            addCriterion("repertory_type <>", value, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeGreaterThan(Byte value) {
            addCriterion("repertory_type >", value, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("repertory_type >=", value, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeLessThan(Byte value) {
            addCriterion("repertory_type <", value, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeLessThanOrEqualTo(Byte value) {
            addCriterion("repertory_type <=", value, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeIn(List<Byte> values) {
            addCriterion("repertory_type in", values, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeNotIn(List<Byte> values) {
            addCriterion("repertory_type not in", values, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeBetween(Byte value1, Byte value2) {
            addCriterion("repertory_type between", value1, value2, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andRepertoryTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("repertory_type not between", value1, value2, "repertoryType");
            return (Criteria) this;
        }

        public Criteria andSkuIsNull() {
            addCriterion("SKU is null");
            return (Criteria) this;
        }

        public Criteria andSkuIsNotNull() {
            addCriterion("SKU is not null");
            return (Criteria) this;
        }

        public Criteria andSkuEqualTo(String value) {
            addCriterion("SKU =", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuNotEqualTo(String value) {
            addCriterion("SKU <>", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuGreaterThan(String value) {
            addCriterion("SKU >", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuGreaterThanOrEqualTo(String value) {
            addCriterion("SKU >=", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuLessThan(String value) {
            addCriterion("SKU <", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuLessThanOrEqualTo(String value) {
            addCriterion("SKU <=", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuLike(String value) {
            addCriterion("SKU like", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuNotLike(String value) {
            addCriterion("SKU not like", value, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuIn(List<String> values) {
            addCriterion("SKU in", values, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuNotIn(List<String> values) {
            addCriterion("SKU not in", values, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuBetween(String value1, String value2) {
            addCriterion("SKU between", value1, value2, "sku");
            return (Criteria) this;
        }

        public Criteria andSkuNotBetween(String value1, String value2) {
            addCriterion("SKU not between", value1, value2, "sku");
            return (Criteria) this;
        }

        public Criteria andPIdIsNull() {
            addCriterion("p_id is null");
            return (Criteria) this;
        }

        public Criteria andPIdIsNotNull() {
            addCriterion("p_id is not null");
            return (Criteria) this;
        }

        public Criteria andPIdEqualTo(Long value) {
            addCriterion("p_id =", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdNotEqualTo(Long value) {
            addCriterion("p_id <>", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdGreaterThan(Long value) {
            addCriterion("p_id >", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdGreaterThanOrEqualTo(Long value) {
            addCriterion("p_id >=", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdLessThan(Long value) {
            addCriterion("p_id <", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdLessThanOrEqualTo(Long value) {
            addCriterion("p_id <=", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdIn(List<Long> values) {
            addCriterion("p_id in", values, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdNotIn(List<Long> values) {
            addCriterion("p_id not in", values, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdBetween(Long value1, Long value2) {
            addCriterion("p_id between", value1, value2, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdNotBetween(Long value1, Long value2) {
            addCriterion("p_id not between", value1, value2, "pId");
            return (Criteria) this;
        }

        public Criteria andRkNumIsNull() {
            addCriterion("rk_num is null");
            return (Criteria) this;
        }

        public Criteria andRkNumIsNotNull() {
            addCriterion("rk_num is not null");
            return (Criteria) this;
        }

        public Criteria andRkNumEqualTo(Integer value) {
            addCriterion("rk_num =", value, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumNotEqualTo(Integer value) {
            addCriterion("rk_num <>", value, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumGreaterThan(Integer value) {
            addCriterion("rk_num >", value, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("rk_num >=", value, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumLessThan(Integer value) {
            addCriterion("rk_num <", value, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumLessThanOrEqualTo(Integer value) {
            addCriterion("rk_num <=", value, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumIn(List<Integer> values) {
            addCriterion("rk_num in", values, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumNotIn(List<Integer> values) {
            addCriterion("rk_num not in", values, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumBetween(Integer value1, Integer value2) {
            addCriterion("rk_num between", value1, value2, "rkNum");
            return (Criteria) this;
        }

        public Criteria andRkNumNotBetween(Integer value1, Integer value2) {
            addCriterion("rk_num not between", value1, value2, "rkNum");
            return (Criteria) this;
        }

        public Criteria andCkNumIsNull() {
            addCriterion("ck_num is null");
            return (Criteria) this;
        }

        public Criteria andCkNumIsNotNull() {
            addCriterion("ck_num is not null");
            return (Criteria) this;
        }

        public Criteria andCkNumEqualTo(Integer value) {
            addCriterion("ck_num =", value, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumNotEqualTo(Integer value) {
            addCriterion("ck_num <>", value, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumGreaterThan(Integer value) {
            addCriterion("ck_num >", value, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("ck_num >=", value, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumLessThan(Integer value) {
            addCriterion("ck_num <", value, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumLessThanOrEqualTo(Integer value) {
            addCriterion("ck_num <=", value, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumIn(List<Integer> values) {
            addCriterion("ck_num in", values, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumNotIn(List<Integer> values) {
            addCriterion("ck_num not in", values, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumBetween(Integer value1, Integer value2) {
            addCriterion("ck_num between", value1, value2, "ckNum");
            return (Criteria) this;
        }

        public Criteria andCkNumNotBetween(Integer value1, Integer value2) {
            addCriterion("ck_num not between", value1, value2, "ckNum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}